// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from "axios";
import resource from "vue-resource";
import Vue from 'vue';
import App from './App';
import httpRequest from '@/utils/httpRequest' ;
import { isAuth } from '@/utils';
import store from '@/store'  ;
import VueSession from 'vue-session';
import VueCookies from 'vue-cookies';

Vue.use(VueSession);
Vue.use(VueCookies);
Vue.use(ElementUI);
Vue.use(resource);
Vue.prototype.axios=axios;
Vue.config.debug=true;
axios.defaults.withCredentials=true;

Vue.config.productionTip = false
// 挂载全局
// Vue.prototype.$http = httpRequest // ajax请求方法
// Vue.prototype.isAuth = isAuth     // 权限方法
// 保存整站vuex本地储存初始状态
// window.SITE_CONFIG['storeState'] = cloneDeep(store.state)


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
